package experiment;

//删除员工操作
public class DeleteIOperation implements IOperation{
    @Override
    public void work(EmployeeList employeeList) {
        System.out.println("请输入要删除的员工姓名：");
        String name = scanner.next();
        if(employeeList.removeEmployee(name)){
            System.out.println("删除员工成功！");
        }else{
            System.out.println("删除员工失败，请重写检查后再进行删除！");
        }
    }
}
